<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset= utf-8" />
<script type="text/javascript" src="__PUBLIC__/js/jquery-1.6.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/easyvalidator/js/easy_validator.pack.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/easyvalidator/js/jquery.bgiframe.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/ui.tab.js"></script>
<link href="__PUBLIC__/css/welcome.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/js/easyvalidator/css/validate.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
$(document).ready(function(){
	$("#submit_1").click(function(){
		$("#form_x").submit();
	});
	$("#reset_1").click(function(){
		document.getElementById("form_x").reset();
	});
	
});


</script>
<style type="text/css">
.label{color:#333;font-size:12px; float:left; width: auto; padding:7px 0 0 0;}
 INPUT { margin-left:8px; background-color:transparent;BORDER-RIGHT:#666 1px solid; BORDER-TOP: #666 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 12px; BORDER-LEFT: #666 1px solid; LINE-HEIGHT: 20px; BORDER-BOTTOM: #666 1px solid; FONT-FAMILY: "宋体"; HEIGHT: 18px; width:160px;}
 textarea{ margin-left:8px; }
 select{ margin-left:12px; }
ul{list-style-type:none; width:1100px; height:500px;}
ul li {width:245px; height:25px;margin:14px 2px;float:left;}
#li_last{width:490px; height:160px;margin:3px 2px;float:left;}
#li_second{width:490px; height:160px; margin:3px 2px;float:left;}
#li_last textarea{HEIGHT: 130px; width:400px; }
#li_second textarea{HEIGHT: 130px; width:400px;}
#submit_div{ height:60px; float:left; position:relative; bottom:240px; left:400px;}
#reset_div{ height:60px; float:left; position:relative; bottom:240px; left:450px;}
#submit_1{ cursor:pointer; cursor:hand;width:46px; text-align:center;height:43px; border:none; background:url(__PUBLIC__/images/submit000.png); }
#reset_1{ cursor:pointer; cursor:hand;width:46px; text-align:center;height:43px; border:none; background:url(__PUBLIC__/images/reset000.png); }
</style>
<title>收支添加</title>
</head>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="17" valign="top" background="__PUBLIC__/images/welcome/mail_leftbg.gif"><img src="__PUBLIC__/images/welcome/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="__PUBLIC__/images/welcome/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
        <tr>
          <td height="31"><div class="titlebt">收支添加</div></td>
        </tr>
      </table></td>
    <td width="16" valign="top" background="__PUBLIC__/images/welcome/mail_rightbg.gif"><img src="__PUBLIC__/images/welcome/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
 <tr>
    <td valign="middle" background="__PUBLIC__/images/welcome/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9"> <div id="welcomeContent">
      <div class="leftCol">
      	<form action="__APP__/finance/update" id="form_x" name="form_x" method="post" >
         <ul>
            <li><div class="label">选择收支类型:</div>
                <select name="tag" reg="[0-1]" tip="收支类型选择">
      				<option <?php if( $result['tag']==0) echo "selected='selected'";?> value="0">支出</option>
   					<option <?php if( $result['tag']==1) echo "selected='selected'";?> value="1">收入</option>
    			</select>
            </li>
            <li><div class="label">选择收支状态:</div>
                <select name="statusInfo" reg="[0-3]" tip="收支状态选择">
      				<option <?php if( $result['statusInfo']==0) echo "selected='selected'";?> value="0">应收</option>
   					<option <?php if( $result['statusInfo']==1) echo "selected='selected'";?> value="1">应付</option>
                    <option <?php if( $result['statusInfo']==2) echo "selected='selected'";?> value="2">已收</option>
   					<option <?php if( $result['statusInfo']==3) echo "selected='selected'";?> value="3">已付</option>
    			</select>
            </li>
            <li style="width:280px;"><div class="label">人员/单位名称:</div><input type="text" name="unitName" reg="[\u4e00-\u9fa5]" tip="只允许中文" value="{$result['unitName']}" /></li>            
            <li><div class="label">金额:</div><input type="text" name="sumInfo" reg="^\d+(\.\d+)?$" tip="只允许非负数字" value="{$result['sumInfo']}" /></li>
            <li style="width:800px;"><div class="label">应收/应付日期:</div><input type="text" name="shouldTime" reg="^((((1[6-9]|[2-9]\d)\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\d|3[01]))|(((1[6-9]|[2-9]\d)\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\d|30))|(((1[6-9]|[2-9]\d)\d{2})-0?2-(0?[1-9]|1\d|2[0-8]))|(((1[6-9]|[2-9]\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-))$" tip="日期必填且格式为:2011-2-6" value="{$result['shouldTime']}" /></li>
            
            <li id="li_last"><div class="label">事由:</div><textarea id="explainInfo" name="explainInfo">{$result['explainInfo']}</textarea></li>
            <li id="li_second"><div class="label">备注:</div><textarea id="remarks" name="remarks">{$result['remarks']}</textarea></li>
            <input type="hidden" name="yes" value="do" />
            <input type="hidden" name="id" value="{$result['id']}" />
         </ul>
       	  <div id="submit_div"><input type="button" title="提交" id="submit_1" /></div>
            <div id="reset_div"><input type="button" title="重置" id="reset_1" /></div>
        </form>
    </div></td>
    <td background="__PUBLIC__/images/welcome/mail_rightbg.gif">&nbsp;</td>
  </tr>
  <tr>
    <td valign="bottom" background="__PUBLIC__/images/welcome/mail_leftbg.gif"><img src="__PUBLIC__/images/welcome/buttom_left2.gif" width="17" height="17" /></td>
    <td background="__PUBLIC__/images/welcome/buttom_bgs.gif"><img src="__PUBLIC__/images/welcome/buttom_bgs.gif" width="17" height="17"></td>
    <td valign="bottom" background="__PUBLIC__/images/welcome/mail_rightbg.gif"><img src="__PUBLIC__/images/welcome/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>
</body>
</html>
